package com.mxpio.erp.common.technology.entity;

import com.mxpioframework.jpa.annotation.Generator;
import com.mxpioframework.security.entity.BaseEntity;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.persistence.*;

/**
 * @Author : wpp
 * @Datetime : 2023/7/28 10:27
 * @Desc :
 * @Modor :  Modifytime:
 * @modDesc :
 */
@Data
@EqualsAndHashCode(callSuper=false)
@Entity
@Table(name = "MB_ERP_TECHNOLOGY_PROCESSGROUP_LINE")
@Schema(description="工序段行信息")
public class ProcessGroupLine extends BaseEntity {

    private static final long serialVersionUID = 1L;
    /**工序编码*/
    @Id
    @Generator
    @Column(name = "ID_", updatable = false)
    private String id;

    @Column(name = "PROC_GROUP_CODE_", updatable = false)
    @Schema(description  = "工序段编码")
    private String procGroupCode;

    @Column(name = "PROCESS_ORDER_" )
    @Schema(description  = "工序顺序")
    private Integer processOrder;
    /**工序名称*/
    @Column(name = "PROCESS_CODE_")
    @Schema(description  = "工序编码")
    private String processCode;

    @Transient
    private ProcessInfo processInfo;

}
